package com.yuand.controller;

import com.yuand.annotation.ParamVerify;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuandong
 * @company KB
 * @create 2022-03-23 14:18
 */
@RestController
@RequestMapping("/sys")
public class UserController {

	@GetMapping("/user/{name}")
	@ParamVerify("name")
	public String hello(@PathVariable("name") String name){
		return name+"hello world";
	}
}
